package com.hmchat.model.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserLoginDTO {

    @NotBlank(message = "账号不能为空")
    private String account; // 可以是用户名、邮箱或手机号
    
    @NotBlank(message = "密码不能为空")
    private String password;
}